package com.atguigu.spring6.iocxml.di;

/**
 * @author: Michael
 * @date: 2025/5/13
 * @desc:
 */
public class Book {

    private String bname;

    private String author;

    private String others;

    public Book() {
    }

    public Book(String bname, String author) {
        this.bname = bname;
        this.author = author;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getOthers() {
        return others;
    }

    public void setOthers(String others) {
        this.others = others;
    }

    public static void main(String[] args) {
        Book book = new Book();
        book.setBname("Spring");
        book.setAuthor("Rod Johnson");
        System.out.println(book.getBname() + " " + book.getAuthor());

        Book book1 = new Book("Java", "Rod Johnson");
        System.out.println(book1.getBname() + " " + book1.getAuthor());
    }


}
